package com.ls.lserp.dbaccess.Dao;

import java.util.List;

import com.ls.lserp.common.persistence.CrudDao;
import com.ls.lserp.common.persistence.annotation.MyBatisDao;
import com.ls.lserp.dbaccess.Entity.ContractMeterialEntity;
import com.ls.lserp.dbaccess.Entity.ContractMeterialEntityWithBLOBs;
@MyBatisDao
public interface ContractMeterialEntityMapper extends CrudDao<ContractMeterialEntity>{
    int deleteByPrimaryKey(Long contractMeterialId);

    int insert(ContractMeterialEntityWithBLOBs record);

    int insertSelective(ContractMeterialEntityWithBLOBs record);

    ContractMeterialEntityWithBLOBs selectByPrimaryKey(Long contractMeterialId);

    int updateByPrimaryKeySelective(ContractMeterialEntityWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(ContractMeterialEntityWithBLOBs record);

    int updateByPrimaryKey(ContractMeterialEntity record);
    /**
     * @Description 定时获取数据供财务业务结算使用
     * @param contractMeterialEntity
     * @return
     */
    List<ContractMeterialEntity> findListForFinance(ContractMeterialEntity contractMeterialEntity);
    /**
     * @Description 更新定时获取的数据状态
     * @param contractMeterialEntity
     */
    int updateStatus(ContractMeterialEntity contractMeterialEntity);
}